package org.smartercontextmobile.communication;

/**
 * This class is the ICommunication interface implementation
 * @author JuanPablo
 * @creation_date 05 Abr 2014
 */
public class Communication implements ICommunication {

	@Override
	public String loginSmarterContext(String login) {
		
		CallSCLogin cscws = new CallSCLogin(login);
		Thread th = new Thread(cscws);
		th.start();
		
		while(cscws.statusConnection==false){
			
		}
		
		return cscws.ret;
	}

	@Override
	public void sendCurrentlocation(String location) {
		
		CallSCLocation cscws = new CallSCLocation(location);
		
		Thread th = new Thread(cscws);
		th.start();

	}

}
